package com.xxx.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 订单信息
 * </p>
 *
 * @author 作者
 * @since 2021-12-21 22:06:56
 */
@Data
@TableName("t_order_info")
@ApiModel(value = "OrderInfo对象", description = "订单信息")
public class OrderInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("订单id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("订单标题")
    @TableField("title")
    private String title;

    @ApiModelProperty("商户订单编号")
    @TableField("order_no")
    private String orderNo;

    @ApiModelProperty("用户id")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty("支付产品id")
    @TableField("product_id")
    private Long productId;

    @ApiModelProperty("订单金额(分)")
    @TableField("total_fee")
    private Integer totalFee;

    @ApiModelProperty("订单二维码连接")
    @TableField("code_url")
    private String codeUrl;

    @ApiModelProperty("订单状态")
    @TableField("order_status")
    private String orderStatus;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;


    public static final String ID = "id";

    public static final String TITLE = "title";

    public static final String ORDER_NO = "order_no";

    public static final String USER_ID = "user_id";

    public static final String PRODUCT_ID = "product_id";

    public static final String TOTAL_FEE = "total_fee";

    public static final String CODE_URL = "code_url";

    public static final String ORDER_STATUS = "order_status";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

}
